package org.zjt.demo;

import org.springframework.retry.annotation.EnableRetry;
import org.zjt.demo.common.AppProfileInfo;
import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;


@SpringBootApplication
@EnableRetry
public class DemoApplication extends SpringBootServletInitializer {
	private static final Logger LOG=Logger.getLogger(DemoApplication.class);

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(DemoApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
		LOG.debug(AppProfileInfo.getProjectProtector());
	}
}
